#include <stdio.h>
// 交换两个变量的数据
int main()
{
  int arr1[] = {1, 2, 3, 4, 5}, arr2[] = {10, 20, 30, 40, 50}, arr3[5];
  for(int i=0;i<5;i++){
    arr3[i]=arr1[i];
    arr1[i]=arr2[i];
    arr2[i]=arr3[i];
  }
  printf("交换后的第一个数组元素分别为:\n");
  for (int i = 0; i < 5; i++){
    printf("%d\t", arr1[i]);
  }
  printf("\n===============================\n");
  printf("交换后的第二个数组元素分别为:\n");
  for (int i = 0; i < 5; i++){
    printf("%d\t", arr2[i]);
  }
  return 0;
}